package tw.com.msig.b2c.car.product.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import tw.com.msig.b2c.car.product.dao.PdtInsItemDao;
import tw.com.msig.b2c.car.product.service.PdtInsItemService;
import tw.com.msig.b2c.car.product.vo.PdtInsItemVo;

public class PdtInsItemServiceImpl implements PdtInsItemService{
	
	private Logger log = LoggerFactory.getLogger(this.getClass());
	
	private PdtInsItemDao pdtInsItemDao;

	public PdtInsItemDao getPdtInsItemDao() {
		return pdtInsItemDao;
	}

	public void setPdtInsItemDao(PdtInsItemDao pdtInsItemDao) {
		this.pdtInsItemDao = pdtInsItemDao;
	}

	@Override
	public List<PdtInsItemVo> getAll() {
		return pdtInsItemDao.findAll();
	}

	@Override
	public PdtInsItemVo getById(long id) {
		return pdtInsItemDao.findById(id);
	}

	@Override
	public void insert(PdtInsItemVo insItemVo) {
		pdtInsItemDao.insert(insItemVo);
	}

	@Override
	public void update(PdtInsItemVo insItemVo) {
		pdtInsItemDao.update(insItemVo);
	}

	@Override
	public void delete(PdtInsItemVo insItemVo) {
		pdtInsItemDao.delete(insItemVo);
	}

}
